package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyService {
    PageInfo<?> query(QueryObject qo);

    void saveOrUpdate(Strategy entity);

    List<Strategy> listAll();

    Strategy getById(Long id);

    Strategy selectStrategyByKeyWord(QueryObject qo);

    Integer queryLikeCount(Long strategyId);

    void updateLike(int likeCount, Long strategyId);

    Integer queryCollectCount(Long strategyId);

    void updateCollectCount(int collectCount, Long strategyId);

    PageInfo<?> selectListByKeyword(QueryObject qo);
}
